import javax.swing.*;
import javax.xml.bind.ParseConversionEvent;
import java.awt.*;

/**
 * User: James Barker
 * Date: 1/08/11
 */
public class ElevatorUI extends JPanel {

    int buttonRangeMin;
    int buttonRangeMax;

    public ElevatorUI() {
        this.setBackground(Color.BLUE);

        for (int i = buttonRangeMin; i < buttonRangeMax; i++) {
            this.add(new JButton(Integer.toString(i)));
        }
    }

    public void setNoFloorButtons(int min, int max) {
    buttonRangeMin = min;
    buttonRangeMax = max;
    }
}


//button.addActionListener(new MyAction());
  /*public class MyAction implements ActionListener{
  public void actionPerformed(ActionEvent e){
  String text = (String)e.getActionCommand();
  if (text.equals("Click Me")){
  button.setText("Roseindia.net");
  }
  else{
  button.setText("Click Me");
  }
  }
  } */